package playn.game.core;

import playn.core.ImmediateLayer;
import playn.core.Surface;
import playn.game.backgrounds.Sky;
import playn.game.backgrounds.Snow;

public class VectorRenderer implements ImmediateLayer.Renderer {

	Sky sky;
	Snow snow;

	public VectorRenderer(){
		init();
	}
	
	
	public void render(Surface surface) {
		String background=Game.currentMap.getProperty("Background");

		if(background != null){
			if(background.equalsIgnoreCase("Snow")){
				snow.render(surface);
			}
			
			
		}

	}

	public void init(){
		sky=new Sky();
		snow=new Snow();
	}
}
